package com.nuanshui.heatedloan.middleware.async.core;

import java.util.Map;


/**
 * 异步执行future
 * @param @param <T>
 * @author guohao
 * @date 2016年12月5日 上午11:32:48
 * @since $
 */
public abstract class AsyncTaskFuture<T> extends AsyncTask implements
		AsyncFuture<T> {

	public AsyncTaskFuture() {
	}

	public AsyncTaskFuture(Map<String, Object> dataMap) {
		this.dataMap = dataMap;
	}

	@Override
	public T doAsync() {
		return doAsync(dataMap);
	}

	public abstract T doAsync(Map<String, Object> dataMap);

}
